package org.vectrics.recruiter.user.resume;

import org.vectrics.batch.VectricsQuartzScheduler;
import org.vectrics.hibernate.ApplicationContext;
import org.vectrics.provider.CoreServiceLocator;

public class ResumeExpireBatchScheduler extends VectricsQuartzScheduler {

	public ResumeExpireBatchScheduler(ApplicationContext applicationContext) {
		super(applicationContext);
	}
	
	public String getJobName() {
		return("Resume Expire Batch");
	}

	public int getSecondsUntilStart() {
		Long seconds = CoreServiceLocator.getSystemService().getLongSystemConstantGlobal("resume.expire.batch.startup.seconds");
		return(seconds.intValue());
	}
	
	public long getSecondsInterval() {
		Long interval = CoreServiceLocator.getSystemService().getLongSystemConstantGlobal("resume.expire.batch.interval");
		return(interval.longValue());
	}

	public Class getJobClass() {
		return ResumeExpireBatchRun.class;
	}

}
